<template>
  <header>
    <h1>
        <img src="@/assets/images/logo.png" alt="">
    </h1>
    <div class="search" @click="goSearch">
        <i class="iconfont icon-fangdajing"></i>
        <span>搜你喜欢的......</span>
    </div>
    <div class="kefu">
        <i class="iconfont icon-kefu"></i>
    </div>
  </header>
</template>

<script>
export default {
    methods:{
        goSearch(){
            this.$router.push('/search');
        }
    }
}
</script>

<style scoped>
header{
    display: flex;
    justify-content: space-around;
    align-content: center;
    align-items: center;
    width: 100%;
    height: 3.125rem;
    background-color: green;
}
header h1{
    padding: 0.625rem;
    width:4.8125rem;
    height: 3.125rem;
    /* background-color: greenyellow; */
}
header h1 img{
    width: 100%;
    height: 100%;
}
.search{
    display: flex;
    align-items: center;
    width: 15.375rem;
    height: 2.5rem;
    background-color: #fff;
    border-radius: 0.75rem;

}
.search i{
    padding: 1rem;
    color: #ccc;
}
.search span{
    color: #ccc;
    font-size: 0.875rem;
}
.kefu i{
    font-size: 2.25rem;
    color: white;
}
</style>